package com.huli.util;

import cn.hutool.core.util.RandomUtil;

public class CheckCodeGenerator {

    /**
     * @param number 验证码位数
     * @return 验证码字符串
     */
    public static String checkCodeGenerator(int number) {
        String code = "";

        for (int i = 0; i < number; i++) {
            code = code.concat(RandomUtil.randomInt(0, 9) + "");
        }

        return code;
    }

}
